package test0103.test02;

public class Department {
    private int department_id;
    private String department_name;
    Position[] positions = new Position[100];
    int num_positions = 0;
    public Department() {
    }

    public Department(int department_id, String department_name) {
        this.department_id = department_id;
        this.department_name = department_name;
    }

    public int getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(int department_id) {
        this.department_id = department_id;
    }

    public String getDepartment_name() {
        return department_name;
    }

    public void setDepartment_name(String department_name) {
        this.department_name = department_name;
    }

    @Override
    public String toString() {
        return "Department{" +
                "department_id=" + department_id +
                ", department_name='" + department_name + '\'' +
                '}';
    }

    public void addPosition(Position juniorDev) {
        this.positions[num_positions] = juniorDev;
        num_positions++;
    }
    public Position[] getPositions() {
        return positions;
    }

}
